/*
 * @Description: 
 * @Author: fhw
 * @Date: 2022-11-29 11:10:39
 */
import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty, IsNumber } from "class-validator";
import { ResumeIdDto } from "./resume.dto";

export class CreateResumeSkilltxtDto {
    @IsNotEmpty({ message: '技术描述不能为空' })
    @ApiProperty({
        type: String,
        name: 'text',
        description: '技术描述',
    })
    public readonly text: string
}
class ResumeSkilltxtIdDto {
    @IsNumber()
    @IsNotEmpty({ message: 'id不能为空' })
    @ApiProperty({
        type: Number,
        name: 'id',
        description: 'id',
    })
    public readonly id: number

    @IsNotEmpty({ message: '技术描述不能为空' })
    @ApiProperty({
        type: String,
        name: 'text',
        description: '技术描述',
    })
    public readonly text: string
}
export class UpdateResumeSkilltxtDto extends ResumeIdDto {
    @ApiProperty({
        example: ResumeSkilltxtIdDto,
        type: [ResumeSkilltxtIdDto],
        description: '技术描述'
    })
    resumeSkilltxt: ResumeSkilltxtIdDto[]
}